//
//  JYZHttpBaseSet.m
//  NetWorking
//
//  Created by dbjyz on 16/3/29.
//  Copyright © 2016年 dbjyz. All rights reserved.
//

#import "JYZHttpBaseSet.h"
#import "JYZNetworkingTools.h"
#import "JYZHttpHeader.h"

@implementation JYZHttpBaseSet

+ (void)load{
    //设置基础url
    [JYZNetworkingTools updateBaseUrl:@"http://120.26.204.209:8081/dbapi-portal/api/"];
    
    //打开调试模式
    [JYZNetworkingTools enableInterfaceDebug:YES];
    
    // 设置GET、POST请求都缓存
    [JYZNetworkingTools cacheGetRequest:YES shoulCachePost:YES];
    
    // 配置请求头
    [JYZNetworkingTools configCommonHttpHeaders:[JYZHttpHeader shareInstance].httpHeaderDic];
}

@end
